﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MCPlatform.Builder.WorkStation.StationEvents
{
    public class EventBase
    {
        /// <summary>
        /// 消息类型
        /// </summary>
        public MessageType MessageType { get; set; }

        /// <summary>
        /// 消息信息
        /// </summary>
        public object? Message { get; set; }

        /// <summary>
        /// 消息序号
        /// </summary>
        public int MessageID { get; set; }

        /// <summary>
        /// 返回值
        /// </summary>
        public TaskCompletionSource<bool> TaskCompletionSource { get; set; } = new TaskCompletionSource<bool>();
    }
}
